package com.syncy.process.exceptions;

import com.thoughtworks.xstream.XStream;

public class ObjectLogger {

	private static XStream xstream = new XStream();
	
	public static String toXmlString(Object obj) {
		
	
		if(obj == null) {
			return "null";
		}
		
		String s = "";
			
		try {
			 s = xstream.toXML(obj);
		} catch (RuntimeException ex){
			
		} catch (Exception ex) {
			
		} finally {
			s = obj.toString();
		}
		
		return s;
	}
	
}
